﻿using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace Maticsoft.DAL
{
	/// <summary>
	/// 数据访问类:Permission
	/// </summary>
	public partial class Permission
	{
        public int DeleteByUserId(int userId)
        {
            string strSql = "delete Permission where UserId=@UserId";
            SqlParameter[] paras = { new SqlParameter("@UserId", SqlDbType.Int, 4) };
            paras[0].Value = userId;

            return DbHelperSQL.ExecuteSql(strSql, paras);
        }
	}
}

